﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="1IssueInvoice.aspx.cs" Inherits="Documents_IssueInvoice" Title="Издаване на Фактури" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: center;
        }
        .style3
        {
            text-align: left;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table border="1" class="style1">
        <tr>
            <td style="text-align: center; background-color: #999999" colspan="2">
                <b>получател</b></td>
            <td rowspan="2" style="text-align: center" colspan="2">
                <b>ФАКТУРА
                <br />
                ОРИГИНАЛ</b></td>
            <td style="text-align: center; background-color: #999999" colspan="2">
                <b>доставчик</b></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="sdsCustomers" 
                    DataTextField="Name" DataValueField="CustomerID">
                </asp:DropDownList>
            </td>
            <td class="style2" colspan="2">
                <b style="text-align: center">Контур България ООД</b></td>
        </tr>
        <tr>
            <td colspan="2">
                Адрес:</td>
            <td style="text-align: center" colspan="2">
                номер:</td>
            <td colspan="2">
                Адрес:</td>
        </tr>
        <tr>
            <td colspan="2">
                № по ЗДДС:</td>
            <td style="text-align: center" colspan="2">
                дата на издаване:</td>
            <td colspan="2">
                № по ЗДДС:</td>
        </tr>
        <tr>
            <td colspan="2">
                ЕИК/ЕГН:</td>
            <td rowspan="2" style="text-align: center" colspan="2">
                дата на данъчно събитие<br />
                или аванс:</td>
            <td colspan="2">
                ЕИК/ЕГН:</td>
        </tr>
        <tr>
            <td colspan="2">
                МОЛ:</td>
            <td colspan="2">
                МОЛ:</td>
        </tr>
        <tr>
            <td colspan="4">
                Основание
                <br />
                при известие:</td>
            <td colspan="2">
                № по ЗДДС в
                <br />
                друга държава:</td>
        </tr>
        <tr>
            <td class="style3" colspan="4">
                Към фактура №:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                От Дата:</td>
            <td colspan="2">
                Други данни:</td>
        </tr>
        <tr>
            <td colspan="6">
                Данни за доставката:</td>
        </tr>
        <tr>
            <td>
                №</td>
            <td>
                Наименование на стока и услугата</td>
            <td>
                Код</td>
            <td>
                Количество</td>
            <td>
                Ед. Цена</td>
            <td>
                Стойност</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox18" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox19" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList5" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox20" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox21" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox22" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList6" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox24" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox25" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList7" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox26" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox27" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox28" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList8" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox29" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox30" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox31" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList9" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox32" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox33" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox34" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList10" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox35" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox36" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox37" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:DropDownList ID="DropDownList11" runat="server" DataSourceID="sdsItems" 
                    DataTextField="NameBG" DataValueField="ItemID">
                </asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox38" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox39" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="TextBox40" runat="server"></asp:TextBox>
            </td>
        </tr>
        </table>
    <asp:SqlDataSource ID="sdsCustomers" runat="server" 
        ConnectionString="<%$ ConnectionStrings:KonturConnectionString %>" 
        SelectCommand="SELECT [CustomerID], [Name] FROM [Customers]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="sdsItems" runat="server" 
        ConnectionString="<%$ ConnectionStrings:KonturConnectionString %>" 
        SelectCommand="SELECT [ItemID], [NameBG] FROM [Items]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server"></asp:SqlDataSource>
</asp:Content>

